getApp();

Component({
    properties: {
        list: Object,
        selected: Object
    },
    data: {},
    methods: {
        nothing: function() {},
        closeOnTap: function() {
            this.setData({
                list: null
            });
        },
        noUseOnTap: function() {
            this.triggerEvent("onSelected", {
                coupon: null
            });
        },
        onSelected: function(t) {
            var e = t.detail.coupon;
            this.triggerEvent("onSelected", {
                coupon: e
            });
        }
    }
});